package com.yjt.admin.system.entity;

import com.yjt.common.entity.CommonEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统文件表
 * </p>
 *
 * @author zzp
 * @since 2021-10-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("b_system_file")
@ApiModel(value="SystemFile对象", description="系统文件表")
public class SystemFile extends CommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "file_id", type = IdType.ASSIGN_ID)
    private String fileId;

    @ApiModelProperty(value = "对应实体id，如员工、合同、奖惩等")
    private String actId;

    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "用途(1组织logo)")
    private Integer purpose;

}
